<template>
  <div class="home">
    <!-- <img alt="Vue logo" src="../assets/logo.png"> -->
    登录
    <button @click="login">设置token</button>
  </div>
</template>

<script>
// @ is an alias to /src
import { setToken } from '@/utils/tools'
export default {
  name: 'Home',
  components: {
  },
  methods: {
    login() {
      setToken({
        token: "xxxx",
        userInfo: "xxx"
      })
    }
  }
}
</script>
